package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EmployeeServiceBillingRulesMapper;
import com.ruoyi.system.domain.EmployeeServiceBillingRules;
import com.ruoyi.system.service.IEmployeeServiceBillingRulesService;

/**
 * 员工服务计费规则Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-09
 */
@Service
public class EmployeeServiceBillingRulesServiceImpl implements IEmployeeServiceBillingRulesService
{
    @Autowired
    private EmployeeServiceBillingRulesMapper employeeServiceBillingRulesMapper;

    /**
     * 通过id查询员工服务计费规则
     *
     * @param id 员工服务计费规则主键
     * @return 员工服务计费规则
     */
    @Override
    public EmployeeServiceBillingRules selectEmployeeServiceBillingRulesById(Long id)
    {
        return employeeServiceBillingRulesMapper.selectEmployeeServiceBillingRulesById(id);
    }

    /**
     * 查询员工服务计费规则列表
     *
     * @param employeeServiceBillingRules 员工服务计费规则
     * @return 员工服务计费规则
     */
    @Override
    public List<EmployeeServiceBillingRules> selectEmployeeServiceBillingRulesList(EmployeeServiceBillingRules employeeServiceBillingRules)
    {
        return employeeServiceBillingRulesMapper.selectEmployeeServiceBillingRulesList(employeeServiceBillingRules);
    }

    /**
     * 新增员工服务计费规则
     *
     * @param employeeServiceBillingRules 员工服务计费规则
     * @return 结果
     */
    @Override
    public int insertEmployeeServiceBillingRules(EmployeeServiceBillingRules employeeServiceBillingRules)
    {
        return employeeServiceBillingRulesMapper.insertEmployeeServiceBillingRules(employeeServiceBillingRules);
    }

    /**
     * 修改员工服务计费规则
     *
     * @param employeeServiceBillingRules 员工服务计费规则
     * @return 结果
     */
    @Override
    public int updateEmployeeServiceBillingRules(EmployeeServiceBillingRules employeeServiceBillingRules)
    {
        return employeeServiceBillingRulesMapper.updateEmployeeServiceBillingRules(employeeServiceBillingRules);
    }

    /**
     * 通过id批量批量删除员工服务计费规则信息
     *
     * @param ids 需要删除的员工服务计费规则主键
     * @return 结果
     */
    @Override
    public int deleteEmployeeServiceBillingRulesByIds(Long[] ids)
    {
        return employeeServiceBillingRulesMapper.deleteEmployeeServiceBillingRulesByIds(ids);
    }

    /**
     * 通过id删除员工服务计费规则信息
     *
     * @param id 员工服务计费规则主键
     * @return 结果
     */
    @Override
    public int deleteEmployeeServiceBillingRulesById(Long id)
    {
        return employeeServiceBillingRulesMapper.deleteEmployeeServiceBillingRulesById(id);
    }
}
